package com.shuyihui.identity

import com.owbtgad.common.base.BaseRepository
import com.owbtgad.common.base.NetLiveData
import okhttp3.MultipartBody
import java.io.InputStream

/**
 * 创建日期 2021/6/8
 * 描述：
 */
class IdentityRepo(private val service: IdentityService) : BaseRepository() {


    suspend fun getAuthConfig(liveData: NetLiveData<String>) {
        executeResp({ service.getAuthConfig() }, liveData)
    }
    suspend fun upload(parts: List<MultipartBody.Part>, liveData: NetLiveData<String>) {
        executeResp2({ service.upload(url = "http://loan.syh.biz/api/android/authCommon/upload/v1",parts = parts) }, liveData)
    }
}